﻿using Volo.Abp.Reflection;

namespace Joy.Erp.BasicArchives.Permissions;

public partial class BasicArchivesPermissions
{
    public const string GroupName = "BasicArchives";
    public const string Menus = "Menus";

    public partial class AdministrationMenu
    {
        public const string Default = Menus + ".Administration";
        public const string IdentityManagement = Default + ".IdentityManagement";
        public const string Roles = IdentityManagement + ".Roles";
        public const string Users = IdentityManagement + ".Users";
        public const string TenantManagement = Default + ".TenantManagement";
        public const string Tenants = TenantManagement + ".Tenants";
        public const string Settings = Default + ".Settings";
    }

    public partial class BasicArchivesMenu
    {
        public const string Default = Menus + ".BasicArchives.ArchivesManagement";
        public const string SalesManagement = Menus + ".BasicArchives.SalesManagement";
        public const string PurchasingManagement = Menus + ".BasicArchives.PurchasingManagement";
        public const string ProductionManagement = Menus + ".BasicArchives.ProductionManagement";
    }

    public static string[] GetAll()
    {
        return ReflectionHelper.GetPublicConstantsRecursively(typeof(BasicArchivesPermissions));
    }
}
